package com.zhuiyun.educations.api.learningrecord.controller;

import com.zhuiyun.educations.api.learningrecord.service.LearningRecordService;
import com.zhuiyun.educations.common.response.CommonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName LearningRecordController
 * @Description TODO
 * @Author cjl
 * @Date 2023/6/26 16:45
 **/
@RestController
@RequestMapping("/learningRecord")
public class LearningRecordController {


    @Autowired
    LearningRecordService learningRecordService;

    @GetMapping("/selectLearningRecordDTOByUserId")
    CommonResult selectLearningRecordDTOByUserId(Integer userId){
        return learningRecordService.selectLearningRecordDTOByUserId(userId);
    }

}
